<div style="font-weight: bold;font-size:12px;">
PHP how to dynamically create facebook like button
</div>
<?php 
	$url = $_SERVER['HTTP_HOST']."/demo/fblikepage.php?id=2";
?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $url; ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=35" 
	scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:47px; height:47px;" allowTransparency="true">
</iframe>